import React, { Component } from 'react';
import { View, Text } from 'react-native';
import WebView from 'react-native-webview';

class DetailPage extends Component{
  render() {
    const { route } = this.props,
      { courseId } = route.params;

    return (
      <WebView
        source={{uri: 'https://ke.qq.com/course/'+ courseId}}
        // source={{ uri: 'https://ke.qq.com/course/334138' }}
        startInLoadingState={true}
      />
    );
  }
}

export default DetailPage;